package biz

import (
	"context"
	"github.com/go-kratos/kratos/v2/log"
)

type Gateway struct {
	Hello string
}

type GatewayRepo interface {
	ConnGateway(context.Context) (*Gateway, error)
}

type GatewayUseCase struct {
	repo GatewayRepo
	log  *log.Helper
}

func NewGatewayUseCase(repo GatewayRepo, logger log.Logger) *GatewayUseCase {
	return &GatewayUseCase{repo: repo, log: log.NewHelper(logger)}
}

func (uc *GatewayUseCase) Create(ctx context.Context) (*Gateway, error) {
	return uc.repo.ConnGateway(ctx)
}
